import React from 'react';
import TableEnhance from "common/table/TableEnhance";
import { SecurityUser } from 'type/entity/SecurityUser';
import {fetchUserPageData} from "storage/redux/async-action/userAsyncAction";
import {useAppSelector} from "storage/redux/hook";
import userColumns from "columns/UserColumns";

const UserComponent = () => {
    const state = useAppSelector(state => state["user"]);
    return (
        <>
          <TableEnhance<SecurityUser>
              title={"用户列表"}
              pageAsyncAction={fetchUserPageData}
              reduxState={state}
              columns={userColumns}
              storeName={"user"}
          />
        </>
    );
};

export default UserComponent;